<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
(function(window){
var JQuery = (function (){	
	
	var JQuery = function(pram){
		this.pram = pram;
	};
	
	JQuery.prototype = {
		print1:function(str){
			alert(str+"1111111"+this.pram);
		},
		print2:function(str){
			alert(str+"2222222"+this.pram);
		},
		val : function(){
			alert(this.pram);
		}
	};
	
	return function(pram){
		return new JQuery(pram);
	};
	
})();

JQuery.alert = function(_data){
	alert("$"+_data);
};

window.$ = window.JQuery = JQuery;

})(window);


//------------------------------------

alert(typeof($("afad")));
var a = $("a");
var b = $("b");
a.val();
b.val();


</script>
</head>
<body>
	I like it ! 99999999   ++++
</body>
</html>